/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package memoriavirtual;

import java.util.ArrayList;

/**
 *
 * @author Raissa2
 */
public class ArquivoController {

    private JanelaPrincipal view;
    private Arquivo model;
    
    public ArquivoController(Arquivo model, JanelaPrincipal view){
     this.view = view;
     this.model = model;
    }
    public void carregaInstrucoes(String nome){
      view.InstrucoesModel = model.carregaInstrucoes(nome);
      view.jTable_Instrucoes.setModel(view.InstrucoesModel);
    }
    public void carregaProcessos(String nome, int tamQuadro){
      view.ProcessosModel = model.carregaProcessos(nome, tamQuadro);
      view.jTable_Processos.setModel(view.ProcessosModel);   
    }
    public ArrayList <Processo> getProcessos(){
     return model.getProcessos();   
    }
    
}
